package com.chouxiaozi.service;

import com.chouxiaozi.domain.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;

@FeignClient(value = "seata-storage-service")
public interface AccountService {
    @PostMapping(value = "/storage/decrease")
    CommonResult decrease(@RequestParam("productId") Integer productId, @RequestParam("money") BigDecimal money);
}
